package com.boot.service;

import com.boot.domain.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Description:
 *
 * @Autor: Rolin
 * datetime: 05-09-19:45
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    //库存减少方法：
    @PostMapping("storage/decrease")
    CommonResult decrease(@RequestParam("productId")Long productId,
                          @RequestParam("count")Integer count);
}
